import request from '@/utils/request'
import settings from '@/settings'

//  获得用户信息
export function getUserInfo(params) {
  return request({
    url: settings.ssoService.getUserInfo,
    method: 'GET',
    params
  })
}

//  刷新Token
export function refreshToken(params) {
  return request.post(settings.ssoService.refreshToken, params)
}

// 获取用户权限
export function getCurrentRoutes(params) {
  return request({
    url: settings.ssoService.getCurrentRoutes,
    method: 'GET',
    params
  })
}
